import Vue from 'vue'
import VueRouter from 'vue-router'
import movieRouter from './movie'
import cinemaRouter from './cinema'
import mineRouter from './mine'

Vue.use(VueRouter)

const routes = [
    {
		path: '/',
		redirect: '/movie',
	},
	movieRouter,
	cinemaRouter,
	mineRouter,
	{
		path: '/*',
		redirect: '/movie',
	},
]

const router = new VueRouter({
	mode: 'history',
	base: process.env.BASE_URL,
	routes,
})

export default router
